import React from 'react';
import ReactDOM from 'react-dom';
import TodoList from './TodoList';
import {Provider} from 'react-redux'
import store from './store'

//Provider组件：react-redux提供
//Provider为里面所有的组件提供store
const App = (
    <Provider store={store} >
        <TodoList />
    </Provider>
)

ReactDOM.render(App , document.getElementById('root'));
